package whf.survey.service;

import whf.framework.exception.ServiceNotFoundException;
import whf.framework.util.BeanFactory;
import whf.survey.dao.SurveyPublishDAO;
import whf.survey.entity.SurveyPublish;

/**
 * 服务对象具体实现，委托相应的dao对象实现相关操作
 * @author wanghaifeng
 * @email king@126.com
 * @modify 2007-06-30
 */
public class SurveyPublishServiceImp extends whf.framework.service.ServiceImp<SurveyPublish> implements SurveyPublishService {

	//引用业务对象DAO
	private SurveyPublishDAO surveyPublishDAO;

	public void setSurveyPublishDAO(SurveyPublishDAO surveyPublishDAO) {
		this.surveyPublishDAO = surveyPublishDAO;
	}
	
	/**
	 * 静态的简单的服务获取方法
	 */
	public static SurveyPublishService getSurveyPublishService() throws ServiceNotFoundException {
		return (SurveyPublishService)BeanFactory.getService(SurveyPublishServiceImp.class) ;
	}

} 